<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function setDataHtml(){

        }
        setDataHtml();
        // 2.使用匿名函数
        var html = function(){
            console.log('123');
        }
        html();
        // 3.new function('参数1','参数2','函数提')
        var f = new Function('x','y','add(x,y)');
        function add(x,y){
            console.log(x+y);
        }
        f(1,3);
        // 函数也属于对象
        
    </script>
</body>
</html>